import request from '@/utils/request';
import { AxiosPromise } from 'axios';



/**
 * 完税证明列表查询
 * @param query
 */
export const taxRecordslist = (query: any): AxiosPromise<any> => {
    return request({
      url: '/payment/taxRecords/list',
      method: 'get',
      params: query
    });
  };


  /**
 * 下载合同
 * @param query
 */
export const downLoadHt = (query: any): AxiosPromise<any> => {
  return request({
    url: '/payment/taxRecords/downLoadHt',
    method: 'get',
    params: query
  });
};



  /**
 * 下载支付凭证
 * @param query
 */
export const downLoadPayCer = (query: any): AxiosPromise<any> => {
  return request({
    url: '/payment/taxRecords/downLoadPayCer',
    method: 'get',
    params: query
  });
};



  /**
 * 下载身份证
 * @param query
 */
  export const downLoadSfz = (query: any): AxiosPromise<any> => {
    return request({
      url: '/payment/taxRecords/downLoadSfz',
      method: 'get',
      params: query
    });
  };
  


 /**
 * 提交完税证明
 * @param query
 */
export const submitTaxRecords = (data: any): AxiosPromise<any> => {
    return request({
      url: '/payment/taxRecords',
      method: 'put',
      data: data
    });
  };
  


  /**
 * 查询发票详情
 * @param query
 */
  export const getInvoiceByNo = (no: any): AxiosPromise<any> => {
    return request({
      url: '/payment/invoice/getInfo/'+no,
      method: 'get'
    });
  };


    /**
   * 查询发票账单详情
   * @param query
   */
  export const getInvoiceBill = (query: any): AxiosPromise<any> => {
    return request({
      url: '/payment/invoiceBill/list',
      method: 'get',
      params: query
    });
  };



   /**
 * 查询报税汇总金额
 * @param query
 */
   export const taxRecordsDetail = (params: any): AxiosPromise<any> => {
    return request({
      url: '/payment/taxRecordsDetail/list',
      params:params
    });
  };

  


